package Data;

public class Relation {
	private State sourceState;
	private State destinationState;
	private String transitionValue;
	
	public Relation (State sourceState, State destinationState, String transitionValue){
		this.sourceState=sourceState;
		this.destinationState=destinationState;
		this.transitionValue= transitionValue;
		
	}
	public State getSourceState() {
		return sourceState;
	}
	public void setSourceState(State sourceState) {
		this.sourceState = sourceState;
	}
	public State getDestinationState() {
		return destinationState;
	}
	public void setDestinationState(State destinationState) {
		this.destinationState = destinationState;
	}
	public String getTransitionValue() {
		return transitionValue;
	}
	public void setTransitionValue(String transitionValue) {
		this.transitionValue = transitionValue;
	}
	
	public String toString(){
		return sourceState.stateName+"-> "+transitionValue+" ->"+destinationState.stateName;
	}
}
